package com.gqz.controller.common;

import com.gqz.service.IBlogParamService;
import com.gqz.utils.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/blog/param")
public class BlogParamController {

    @Autowired
    private IBlogParamService blogParamService;

    @GetMapping
    public JsonResult getAllBlogParam() {
        Map<String, String> map = blogParamService.getAllBlogParam();
        return JsonResult.ok(map);
    }
}
